package com.yc.class_attendance.net;


import com.yc.class_attendance.entity.AttMeetingResutl;
import com.yc.class_attendance.entity.AttendanceResutl;
import com.yc.class_attendance.entity.ImageResutl;
import com.yc.class_attendance.entity.Resutl;
import com.yc.class_attendance.entity.UploadResutl;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by sunhellc on 16/6/13.
 */
public interface Service {
    @GET("/app/traincourse/list")
    Observable<AttendanceResutl> Getmeeting(@Query("termCode") String termCode, @Query("time") String time);
    @GET("/app/meeting/list")
    Observable<AttMeetingResutl> GetAttmeeting(@Query("termCode") String termCode, @Query("time") String time);
    @FormUrlEncoded
    @POST("/app/traincourse/update")
    Observable<Resutl> upload(@Field("coursecheck") String json);
    @GET("/SysAppinfo/up/2")
    Observable<UploadResutl>uploadApk();
    @FormUrlEncoded
   @POST("/app/images/UploadImageString")
    Observable<ImageResutl> UploadImageString(@Field("imageTitle") String imageTitle, @Field("imageIntro") String imageIntro, @Field("actId") String actId, @Field("userId")String userid);


}
